class VistaNavegadorGenerator < Rails::Generator::NamedBase

  def manifest
    record do |m|
      m.class_collisions class_name
      
      m.directory File.join('app/views', file_name)
      
      m_template(m, '_acciones')
      m_template(m, '_form')
      
    end
  end
  
  def m_template(m, name)
    m.template "app/views/#{name}_template.rhtml",
              "app/views/#{file_name}/#{name}.rhtml",
              :assigns => {:clase => eval("#{class_name}")}
  end
  
end
